#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"
void test1()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);

	StackPop(&st);
	StackPop(&st);
	printf("%d", StackTop(&st));
	StackDestroy(&st);
}
void test2()
{

	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	printf("%d", StackTop(&st));
	printf("%d", StackSize(&st));

	while (!StackEmpty(&st));
	{
		printf("%d", StackTop(&st));
		StackPop(&st);
	}
	StackDestroy(&st);
}
int main() {
	//test1();
	test2();
	return 0;
}